package com.groupbuying.storeinternal.dao;

import com.groupbuying.storeinternal.domain.StoreCheckoutCounterRelDO;
import com.groupbuying.storeinternal.dto.forManage.StoreCheckoutCounterRelDTO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 收款台和门店员工关联表
 * @author wenguoqiang
 * @email 17081@mengtaigroup.com
 * @date 2019-01-25 17:07:11
 */
@Mapper
@Repository
public interface StoreCheckoutCounterRelDao {

	StoreCheckoutCounterRelDO get(String uuid);
	
	List<StoreCheckoutCounterRelDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(StoreCheckoutCounterRelDO storeCheckoutCounterRel);
	
	int update(StoreCheckoutCounterRelDO storeCheckoutCounterRel);
	
	int remove(String uuid);
	
	int batchRemove(String[] uuids);

	/**
	 * 查找柜台详细信息
	 * @param param
	 * @return
	 */
    List<StoreCheckoutCounterRelDTO> getListByAccountId(Map<String, Object> param);

	/**
	 * 查找柜台详细信息数量
	 * @param param
	 * @return
	 */
	int getListCountByAccountId(Map<String, Object> param);

	/**
	 * 查找柜台信息
	 * @param accountId
	 * @return
	 */
	List<StoreCheckoutCounterRelDO> getByAccount(String accountId);

	StoreCheckoutCounterRelDO getUshop(String accountId);

	List<String> getStaffUuidByCounterId(String counteruuid);
}
